-- GENERATED SPELL FOR [Ironbeak Owl] --


function spell0_7097(pUnit, Event) --@Swoop,n/a--
pUnit:FullCastSpellOnTarget(5708,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7097', 2301, 1)
end

function Sorts_7097(pUnit, Event)
local choix_sorts_7097 = math.random(0, 0)
if choix_sorts_7097 == 0 then
pUnit:RegisterEvent('spell0_7097', 1, 1)
end
end

function mob7097_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7097', math.random(1500, 3000), 1)
end

function mob7097_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7097_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7097_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7097, 1, 'mob7097_Action')
RegisterUnitEvent(7097, 2, 'mob7097_Leave')
RegisterUnitEvent(7097, 3, 'mob7097_Kill')
RegisterUnitEvent(7097, 4, 'mob7097_Die')
